package com.kun.remote;

import com.kun.constant.ServiceConstant;
import com.kun.entity.SysRole;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author kun.li
 */
@FeignClient(contextId = "remoteRoleService", value = ServiceConstant.SYSTEM_SERVICE_NAME, path = "/role")
public interface RemoteRoleService {


    @GetMapping("getRoleList")
     List<SysRole> getRoleList(@RequestParam("userId") String userId);
}
